package ts;

import java.util.Vector;

import ast.decl.Declaration;
import ast.decl.ParDecl;

public class ProInfo extends FunInfo {
	private Vector<Integer> listPar;
	public ProInfo(String id) {
		super("procedure", id);
	}
	@Override
	public String toString() {
		return "VarInfo [categoria="+getCategoria()+", id="+getId()+"]";
	}
	public void setListPar(Vector<Declaration> listPar) {
		this.listPar = new Vector<Integer>();
		for (int i=0;i<listPar.size();i++) {
			ParDecl pd = (ParDecl)listPar.elementAt(i);
			this.listPar.add(pd.getId());
		}
	}
	public Vector<Integer> getListPar() {
		return listPar;
	}
}
